package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniuxy.model.ProjectRoleUser;
import com.woniuxy.dao.ProjectRoleUserDao;
import com.woniuxy.service.ProjectRoleUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-21
 */
@Service
public class ProjectRoleUserServiceImpl extends ServiceImpl<ProjectRoleUserDao, ProjectRoleUser> implements ProjectRoleUserService {

    @Override
    public List<String> getCandoStates(Integer uid) {
        List<ProjectRoleUser> projectRoleUsers = this.baseMapper.selectList(new QueryWrapper<ProjectRoleUser>().eq("u_id", uid));
        if(projectRoleUsers==null||projectRoleUsers.size()==0){
            return null;
        }
        if (projectRoleUsers.get(0).getProjectRoleId()!=0) {

        }else {

        }
        return null;
    }
}
